﻿@using System.Web.Script.Serialization
@{
    ViewBag.Title = "Create";
}

<div>
   @Html.Partial("_ProductVariantAddOrEdit")
</div>

<div>
     @Html.Partial("_ProductVariantAtributesAddOrEdit")
</div>


<div>
    @Html.Partial("_ShopAddOrEdit")
</div>





<div>
    <span></span>
</div>

@{
    var jsonPostModel = new HtmlString(new JavaScriptSerializer().Serialize(Model));
}
<script>

    var initialData = @jsonPostModel;

    function PostModel() {
        var self = this;
        self.ProductVariantId = ko.observable(initialData.ProductVariantId);
        self.Price = ko.observable(initialData.ProductVariantId);

        self.SaveProduct = function() {

        };

        self.SaveProductAttributes = function() {

        };


        
    }

</script>
